<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<div id="app">
    <ul>
        <li v-for="(item,i) in list">--{{i}}--{{item}}</li>
        <li v-for="item in lis">{{item.id}}{{item.name}}</li>
    </ul>
    <p v-for="(val,key) in user">键是{{key}}值是{{val}}</p>
</div>

<body>
    <script src="./vue.js"></script>
    <script>
        let vm = new Vue({
            el: '#app',
            data() {
                return {
                    list: [1, 2, 3, 4, 5],
                    lis: [
                        { id: 1, name: 'zs' },
                        { id: 2, name: 'ww' },
                        { id: 3, name: 'ls' }
                    ],
                    user: {
                        id: 1,
                        name: 'wjx'
                    }
                }
            },
        })
    </script>
</body>

</html>